package com.leosoft.heatmonitor.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BaseDAO {
	@Autowired
	SessionFactory sf;

	public Session getSession() {
		return this.sf.getCurrentSession();
	}
}
